<?php
/**
 * Created by PhpStorm.
 * User: Office
 * Date: 2017/12/25
 * Time: 14:27
 */


session_start();
if(isset($_SESSION['user'])){
    $_SESSION['user']='';
    $msg = '您已成功退出，<a href="../index.php">返回首页 </a>';
}else{
    $msg = '您未曾登录或已超时退出，<a href="../index.php">返回首页 </a>';
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>退出登录</title>
    <link rel="stylesheet" href="../css/blog.css">
</head>
<body>
<div class="box">
    <header>
        <h2>我的BLOG</h2>
    </header>
    <div class="content clearBox">
        <div class="left">
            <h5 class="title">退出登录</h5>
            <div style="padding-top: 10px"><?php  echo $msg; ?></div>
        </div>

        <div class="right">
            <div class="sidebar">
                <h5 class="title">关于我</h5>
                <p class="right-ctn">php初学者</p>
            </div>

        </div>
    </div>

</div>
<div class="footer">CopyRight&nbsp;2017</div>

</body>
</html>